<?php namespace Common\Model; 
//引入Model类
use Hdphp\Model\Model;

//商品详情表管理(实现增删改查)
class GoodsDetail extends Model{
	//绑定wsshop_goods_detail表
	protected $table = 'goods_detail';
	

	//获取商品的详情信息
	public function getDetail($gid){
		//获取商品的详情图册并返回数据
		$gdpic = $this->where("wsshop_goods_gid=$gid")->pluck('gdpic');
		return $gdpics = explode(',', $gdpic);
	}
}
